<template>
  <div class="home">
    <div class="bottomNav">
      <div class="bottomLeft" @click="home">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-daohangshouye"></use>
        </svg>
      </div>
      <div class="bottomMid">
        <div class="input" @click="search">
            <span>搜索</span>
        </div>
      </div>
      <div class="bottomRight" @click="user">
        <!-- <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-search"></use>
        </svg> -->
          <svg class="icon" aria-hidden="true" >
            <use xlink:href="#icon-yonghu"></use>
          </svg>
          
      </div>
    </div>
  </div>
</template>

<script>
// import { getLostList } from "@/api/api.js";

export default {
  data: function () {
    return {
      lostList: [],
      // show: false,
    };
  },
  methods: {
    search:function () {
      this.$router.push("/search");
    },
    home:function(){
      this.$router.push("/");
    },
    user:function(){
      this.$router.push("/user");
    }
  },
  mounted: async function () {},
};
</script>

<style lang="less" scoped>
.bottomNav {
  min-width: 100vw;
  height: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.4rem;
  // border-top: solid 0.07rem #2ecc71;
  box-shadow: 0rem 0rem 0.3rem 0rem rgba(0, 0, 0, 0.15);
  position: fixed;
  bottom: 0rem;
  background-color:  white;
  .bottomLeft {
    width: 0.8rem;
    height: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    .icon {
      width: 0.6rem;
      height: 0.6rem;
      fill: #7f8fa6;
    }
  }
  .bottomMid {
    display: flex;
    align-items: center;
    .input {
      width: 3rem;
      height: 0.7rem;
      border: #7f8fa6 solid 0.04rem;
      border-radius: 0.35rem;
      // padding-left: 0.5rem;
      display: flex;
      justify-content: center;
      align-items: center;
      color:  #273c75;
      span {
        color: #95a5a6;
        font-size: 0.32rem;
        line-height: 0.7rem;
        letter-spacing: 0.1rem;
        padding-left: 0.1rem;
      }
    }
  }
  .bottomRight {
    // background-color: #27ae60;
    width: 0.8rem;
    height: 0.8rem;
    // border-radius: 0.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    // margin-left: 0.2rem;
    .icon {
      width: 0.6rem;
      height: 0.6rem;
      fill: #7f8fa6;
    }
  }
}
</style>